import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import FormTemplateDesign from '@/views/formTemplate/FormTemplateDesign'
import FormPreview from '@/views/formTemplate/FormPreview'
import formImage from "@/views/xyImage/formImage"


Vue.use(Router)

export default new Router({
  // mode: 'history',
  // base: "/base",
  routes: [
    
    {
      path: '/',
      name: 'FormTemplateDesign',
      meta: {
        keepAlive: true, //该字段表示该页面需要缓存
      },
      component: FormTemplateDesign,
    },
    {
      path: '/Preview',
      name: 'FormPreview',
      component: FormPreview
    },
    // {
    //   path: '/formImage',
    //   name: 'FormTemplateDesign',
    //   meta: {
    //     keepAlive: true, //该字段表示该页面需要缓存
    //   },
    //   component: formImage,
    // }
  ]
})
